package cn.wolfcode.wms.mapper;

import cn.wolfcode.wms.domain.SystemMenu;
import cn.wolfcode.wms.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SystemMenuMapper {
    void deleteByPrimaryKey(Long id);
    void insert(SystemMenu record);
    SystemMenu selectByPrimaryKey(Long id);
    List<SystemMenu> selectAll();
    void updateByPrimaryKey(SystemMenu record);
    Integer selectForCount(QueryObject qo);
    List<?> selectForList(QueryObject qo);
    List<Map<String,Object>> selectMenusBySn(String menuSn);
    List<Map<String,Object>> selectMenusBySnAndEmployeeId(@Param("menuSn") String menuSn,
                                                          @Param("employeeId") Long employeeId);
}